<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<HEAD>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<script language="javascript" src="../script/common.js"></script>
	<script>
	    var orgs = Common.cOrg();	//当前单位	
		var qt = {}
		var inited = false;
		var org = null;
		function load(){
			createTable();
		}	
		//生成表格，创建QueryTable对象
		function createTable(){
			$('org').value=orgs.id;
			var columns = [];
			columns[0]= {type:"checkbox"}
			/*var columns = [	
				{type:"radio"},												//单选框
				{title:"礼品编号",width:"21%"},
				{title:"礼品名称",width:"21%"},								
				{title:"单位名称",width:"16%"},
				{title:"价格",width:"18%"},
				{title:"礼品统采机构",width:"30%"}
			]*/
			qt = new QueryTable("lower_location_query_ss","search","datalist",columns);
				qt.showTable()
		}
		function getBackValue() {
			var obj = qt.getBoxValue(true);
			return obj;
		}
	
		function onSave() {
		var s="";
			var v = getBackValue();
			for(i=0;i<v.length;i++){
			  s+=v[i][0].toString();
			  if(v.length-1!=i){
			    s+=",";
			  }
			 
			}
			dialogBackValue(s);
		}
	</script>
	</HEAD>
<BODY onload='load()'>	
	<form id="search" name="search">
		<input type=hidden id="org" name="org">
		<div id=datalist></div>
	</form>
</BODY>
</HTML>
